<?php /* Smarty version 2.6.26, created on 2013-10-17 02:12:40
         compiled from homepage.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'l', 'homepage.tpl', 8, false),array('modifier', 'thumb', 'homepage.tpl', 18, false),array('modifier', 'date_format', 'homepage.tpl', 27, false),array('modifier', 'number_format', 'homepage.tpl', 30, false),array('modifier', 'ltpl', 'homepage.tpl', 39, false),)), $this); ?>
<div class="site-wrap2 clearfix">
<?php echo $this->_tpl_vars['dzMessage']; ?>

<div id="thumbnail" class="clearfix"> 
	<!--/ item -->
	<?php $_from = $this->_tpl_vars['aNews']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['news']):
?>
	<div class="item type-cate type<?php echo $this->_tpl_vars['news']['news_cat_id']; ?>
">
		<div class="title-cate">
			<h2> <i class="icon-type-sm type-sm<?php echo $this->_tpl_vars['news']['news_cat_id']; ?>
"></i> <a href="<?php echo ((is_array($_tmp='category/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['news']['news_cat_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['news']['news_cat_id'])); ?>
"><?php echo $this->_tpl_vars['aCat'][$this->_tpl_vars['news']['news_cat_id']]; ?>
</a> </h2>
		</div>
		<div class="img"> 
			<!--thanh cong cu an-->
			<ul class="toolsHide">
				<li><a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>
<?php echo ((is_array($_tmp='news/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['news']['news_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['news']['news_id'])); ?>
" title="Share" class="btnFbShare"><i class="icon-share"></i></a></li>
				<li><a href="#" title="Thích"class="btn-news-like" news-id="<?php echo $this->_tpl_vars['news']['news_id']; ?>
"><i class="icon-thumbs-up"></i></a></li>
				<li><a href="#" title="Quan tâm" class="btn-news-follow" news-id="<?php echo $this->_tpl_vars['news']['news_id']; ?>
"><i class="icon-bookmark"></i></a></li>
			</ul>
			<!--End thanh cong cu an--> 
			<a href="<?php echo ((is_array($_tmp='news/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['news']['news_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['news']['news_id'])); ?>
"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['news']['news_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'w210') : smarty_modifier_thumb($_tmp, 'w210')); ?>
" /></a> </div>
		<div class="infoAlbum clearfix">
			<div class="titleAlbum">
				<h3><a href="<?php echo ((is_array($_tmp='news/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['news']['news_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['news']['news_id'])); ?>
"><?php echo $this->_tpl_vars['news']['news_title']; ?>
</a></h3>
			</div>
			<div class="desAlbum">
				<p> <?php echo $this->_tpl_vars['news']['news_desc']; ?>
 <a class="more" href="<?php echo ((is_array($_tmp='news/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['news']['news_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['news']['news_id'])); ?>
">Xem tiếp</a> </p>
			</div>
			<div class="sourceUploaded"><a href="#"><i class="icon-map-marker"></i>geeko.edu.vn</a></div>
			<div class="dateUploadedAlbum"><?php echo ((is_array($_tmp=$this->_tpl_vars['news']['news_updated'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d/%m/%Y') : smarty_modifier_date_format($_tmp, '%d/%m/%Y')); ?>
</div>
		</div>
		<ul class="toolAlbum clearfix">
			<li class="likeAlbum"><a href="#"><i class="icon-thumbs-up"></i><?php echo ((is_array($_tmp=$this->_tpl_vars['news']['news_likes'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
</a></li>
			<li class="commentAlbum"><a href="#"><i class="icon-comment"></i>195</a></li>
			<li class="viewAlbum"><i class="icon-eye-open"></i><?php echo ((is_array($_tmp=$this->_tpl_vars['news']['news_views'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
</li>
		</ul>
	</div>
	<?php endforeach; endif; unset($_from); ?>
	<div class="btnUpTop"><a href="#" title="Lên đầu trang">Lên đầu trang</a></div>
</div>

<script src="<?php echo ((is_array($_tmp='js/jquery.masonry.min.js')) ? $this->_run_mod_handler('ltpl', true, $_tmp) : smarty_modifier_ltpl($_tmp)); ?>
" type="text/javascript" charset="utf-8"></script>
<?php echo '
<script>
$(function(){  
  var $container = $(\'#thumbnail\');
	$container.imagesLoaded( function(){
		$container.masonry({
			isAnimated: true,
			itemSelector: \'.item\',
  		columnWidth: 240
		});
	});
});
</script> 
'; ?>